﻿namespace WLFramework.Reflection
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class TargetCreater
    {
        public string Name { get; set; }
        public CtorDelegate Ctor { get; set; }
        public Type TargetType { get; set; }

        public TargetCreater()
        {
        }

        public TargetCreater(string name, CtorDelegate ctor)
            : this(name, ctor, null)
        {
        }

        public TargetCreater(CtorDelegate ctor, Type valueType)
            : this(valueType.Name, ctor, valueType)
        {
        }

        public TargetCreater(string name, CtorDelegate ctor, Type valueType)
        {
            this.Name = name;
            this.Ctor = ctor;
            this.TargetType = valueType;
        }
    }
}
